<?php
declare(strict_types=1);

namespace App\Models\Admin\Message;

class TemplateConfig extends \App\Models\Message\TemplateConfig
{
    public static function getList(): array
    {
        $items = self::query()->where([
            ["is_show", "=", 1],
        ])->get(["title", "template_id"]);
        $array = [];
        foreach ($items as $value) {
            $array[$value->template_id] = $value->title;
        }
        return $array;
    }
}
